#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class ScoreInPratise : Business.BusinessBase<ScoreInPratise, int>
	{
		#region Fields and Properties

		private String scoreCate = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String ScoreCate
		{
			get { return scoreCate; }
			set
			{
				if (value != scoreCate)
				{
					MarkChanged("ScoreCate");
					scoreCate = value;
				}
			}
		}

		private Decimal scoreNum = 0.0m;
		/// <summary>
		/// 
		/// </summary>
		public Decimal ScoreNum
		{
			get { return scoreNum; }
			set
			{
				if (value != scoreNum)
				{
					MarkChanged("ScoreNum");
					scoreNum = value;
				}
			}
		}

		private int term = 0;
		/// <summary>
		/// 
		/// </summary>
		public int Term
		{
			get { return term; }
			set
			{
				if (value != term)
				{
					MarkChanged("Term");
					term = value;
				}
			}
		}

		private String yearNum = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String YearNum
		{
			get { return yearNum; }
			set
			{
				if (value != yearNum)
				{
					MarkChanged("YearNum");
					yearNum = value;
				}
			}
		}

		private String studentCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String StudentCode
		{
			get { return studentCode; }
			set
			{
				if (value != studentCode)
				{
					MarkChanged("StudentCode");
					studentCode = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public ScoreInPratise()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override ScoreInPratise DataSelect(int id)
		{
			return Services.DALService.ScoreInPratiseService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.ScoreInPratiseService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.ScoreInPratiseService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.ScoreInPratiseService.Delete(this);
		}

		#endregion Base overrides
	}
}
